1 using System.Collections;
2 using
System.Collections.Generic;
3 using
UnityEngine;
4
5 public
class Target : MonoBehaviour {
6
7     
public float speed;
8
9     
// Use this for initialization
10     
void Start () {
11         
12     }
13     
14     
// Update is called once per frame
15     
void Update () {
16         RotateMovement ();
17     }
18
19     
void RotateMovement(){
20         transform.Rotate (
0, 0, speed * Time.deltaTime);
21     }
22 }


Gõ tìm kiếm nhanh...